﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Order.OrderList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>
<%@ Import Namespace="ZLCMS.Commands.User.Util" %>
<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>
<style type="text/css">
       .shoplist p{ line-height: 18px;word-break: break-all; word-wrap: break-word;}
</style>
<form id="pageForm" method="post" class="pageForm" runat="Server">

<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent">
		<tr>
			<td>
			    <span>手机号码&nbsp;</span>
				<asp:TextBox ID="phone" runat="server" cond="phone"></asp:TextBox>&nbsp;&nbsp;
			</td>
			<td>
			    <span>订 单 号&nbsp;</span>
			    <asp:TextBox ID="orderno" runat="server"  cond="orderno"></asp:TextBox>&nbsp;&nbsp;
			</td>
            <td>
			    <span>收货人手机号码&nbsp;</span>
				<asp:TextBox ID="rcv_phone" runat="server" cond="rcv_phone"></asp:TextBox>&nbsp;&nbsp;
			</td>
             <td>
			    <span>交易单号&nbsp;</span>
				<asp:TextBox ID="trade_no" runat="server" cond="trade_no"></asp:TextBox>&nbsp;&nbsp;
			</td>
		
		</tr>
        <tr>	
        <td>
			    <span>起止时间&nbsp;</span>
				<asp:TextBox ID="start" runat="server" class="date" format="yyyy-MM-dd" readonly="true" cond="start"></asp:TextBox>-
			    <asp:TextBox ID="end" class="date" format="yyyy-MM-dd" readonly="true" runat="server" cond="end"></asp:TextBox>
			</td>
			<td colspan="5">
			    <span>订单状态&nbsp;</span>
				<asp:dropdownlist runat="server" ID="confirm" cond="confirm"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="pay" cond="pay"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="shipping" cond="shipping"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="finish" cond="finish"></asp:dropdownlist>&nbsp;&nbsp;
				<asp:dropdownlist runat="server" ID="cancel" cond="cancel"></asp:dropdownlist>&nbsp;&nbsp;
               
			</td>
		</tr>
		</table>
		
	    <div class="subBar">
			<ul>

			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.redirect(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>查询</span></a>
			</li>
            <li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.exportFile(this);" 
			    target="dwzExport" rel="exportexcel" title="导出EXCEL"><span>导出EXCEL</span></a>
			</li>

			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
            <% if (AuthUtil.CheckAuthorization("ORDER_MAN", "DELETE"))
               { %>
            <li><a class="delete" href='/SystemManage/Basics/Shop/Order/OrderDelete.aspx' target="selectedTodo"title="请确定要删除"><span>删除勾选</span></a></li>
		<%} %>
        </ul>
	</div>
	<div class="tableList" layoutH="142">
	<table class="list shoplist" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
			    <th width="200px">订单信息</th>
              <%--  <th width="60px">会员信息</th>--%>
              <%--  <th width="100px">会员手机</th>--%>
				<th width="220px">收货人信息</th>
				<th width="200px">产品信息</th>
                <th width="100px">快递单号</th>
				<th width="80px">费用信息</th>
				<th width="60px">订单状态</th>
				<th width="120px">备注</th>
				<th width="80px" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid" OnItemDataBound="ItemDataBound">
                <ItemTemplate>
			    <tr target="uid">
                    <td><input name="ids" value="<%#Eval("OrderNo")%>" type="checkbox"/></td>
				    <td title="<%# Eval("OrderNo")%>">
                        <p>下单时间：<%# Eval("OrderTime", "{0:yyyy-MM-dd HH:mm:ss}")%></p>
                        <p>订单号：<%# Eval("OrderNo")%></p>
                        <p>交易号：<%# Eval("PaymentTradeNo")%></p>
                    </td>
                    <%--<td><%#Eval("MemberName")%></td>--%>
                    <td>
                        <p><%# Eval("ReceiverName")%></p>
                        <p><%# Eval("ReceiverPhone")%></p>
                        <p><%# Eval("ReceiverProvince")%><%# Eval("ReceiverCity")%><%# Eval("ReceiverAddress")%></p>
                    </td>
                    <td>
                    <asp:Repeater runat="server" id="Products">
                <ItemTemplate>
                    <p>&nbsp;<%#Eval("ProductName")%>,<%#Eval("SalePrice")%>*<%#Eval("Counter")%>=<%#Eval("TotalPrice")%></p>
                </ItemTemplate>
                </asp:Repeater>
                    </td>
                    <td><a href='http://www.kuaidi100.com/chaxun?com=<%# Eval("ShippingType")%>&nu=<%# Eval("ShippingNo")%>' target='_blank'><%# Eval("ShippingNo")%></a></td>
                  <%--  <td><%# Eval("Phone")%></td>--%>
                    <%--<td><%# Eval("ReceiverName")%></td>--%>
                    <td>
                        <p>总价：<%# Eval("TotalPrice")%></p>
                        <p>应付：<%# Eval("PaymentPrice")%></p>
                    </td>
				    <td>
				        <p><%# ParamKit.GetValue("OrderIsConfirmed", Eval("ConfirmedStatus"), "&nbsp;")%></p>
				        <p><%# ParamKit.GetValue("OrderPayStatus", Eval("PayStatus"), "&nbsp;")%></p>
				        <p><%# ParamKit.GetValue("OrderShippingStatus", Eval("ShippingStatus"), "&nbsp;")%></p>
				        <p><%# ParamKit.GetValue("OrderIsFinish", Eval("FinishedStatus"), "&nbsp;")%></p>
				        <p><%# ParamKit.GetValue("OrderIsCancel", Eval("CancelStatus"), "&nbsp;")%></p>
                    </td>
                    <td><%# Eval("Remark")%></td>
				    <td align="center"> 
                     <% if (AuthUtil.CheckAuthorization("ORDER_MAN", "VIEW_OWNER") || AuthUtil.CheckAuthorization("ORDER_MAN", "VIEW_ALL")){ %>
				        <a href="/SystemManage/Basics/Shop/Order/OrderDetail.aspx?no=<%# Eval("OrderNo")%>&freshtabid=<%= _framePage.NavTabId %>" target="navTab" title="订单详情" rel="OrderDetail">查看</a>&nbsp;&nbsp;
				   <%} %>
                   <% if (AuthUtil.CheckAuthorization("ORDER_MAN", "DELETE"))
               { %>
            <a  href='/SystemManage/Basics/Shop/Order/OrderDelete.aspx?ids=<%# Eval("OrderNo")%>' target="ajaxTodo" title="请确定要删除此订单">删除</a>
		<%} %>
                    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>